package com.gxa.accommodation.service;

import com.gxa.accommodation.dto.AccommodationRoomTypeDTO;
import com.gxa.common.base.RespResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface AccommodationRoomTypeService {
    /**
     * 添加房间类型
     * @param accommodationRoomTypeDTO 房间类型实体DTO
     * @return RespResult
     */
    RespResult addRoomType(AccommodationRoomTypeDTO accommodationRoomTypeDTO);

    /**
     * 添加图片
     * @param file
     * @param id
     * @param request
     * @return
     */
    RespResult addRoomTypeImg(MultipartFile file, Long id, HttpServletRequest request);

    /**
     * 分页查询所有房间类型
     * @param currentPage
     * @param pageSize
     * @return
     */
    RespResult showRoomTypeList(Integer currentPage, Integer pageSize);

    /**
     * 修改房间类型
     * @param accommodationRoomTypeDTO
     * @return
     */
    RespResult updateRoomType(AccommodationRoomTypeDTO accommodationRoomTypeDTO);

    /**
     * 修改房间上架下架
     * @param id
     * @param roomStatus
     * @return
     */
    RespResult updateRoomStatusById(Long id, Byte roomStatus);

    /**
     * 根据id删除房间类型
     * @param id
     * @return
     */
    RespResult delRoomTypeById(Long id);
}
